-- GENERATED SPELL FOR [Deeb] --


function spell0_1911(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1911', 3000, 1)
end

function spell1_1911(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(2607,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1911', 0, 1)
end

function Sorts_1911(pUnit, Event)
local choix_sorts_1911 = math.random(0, 1)
if choix_sorts_1911 == 0 then
pUnit:RegisterEvent('spell0_1911', 1, 1)
end
if choix_sorts_1911 == 1 then
pUnit:RegisterEvent('spell1_1911', 1, 1)
end
end

function mob1911_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1911', math.random(1500, 3000), 1)
end

function mob1911_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1911_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1911_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1911, 1, 'mob1911_Action')
RegisterUnitEvent(1911, 2, 'mob1911_Leave')
RegisterUnitEvent(1911, 3, 'mob1911_Kill')
RegisterUnitEvent(1911, 4, 'mob1911_Die')
